package com.example.model_user.api

import com.chendechao.lib_network.di.model.BaseResponse
import com.example.model_user.model.UserInfo
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface UserApiService {

    @POST("/user/login")
    @FormUrlEncoded
    suspend fun getUserInfo(@Field("username")name:String, @Field("password") password:String): BaseResponse<UserInfo>

    @POST("/user/register")
    @FormUrlEncoded
    suspend fun getRegister(@Field("username")name:String, @Field("password") password:String): BaseResponse<UserInfo>
}